package com.kaifamiao.www.demo.Do18;

import java.util.Scanner;

public class Ex01 {

    public static void main (String [] args){
        Scanner input = new Scanner(System.in);
        System.out.println("输入行数，生成等腰三角形");
        int row = input.nextInt();

        for(int i = 1;i<=row;i++){

            for ( int j = 1;j <= row -i;j++){
                System.out.print(" ");
            }
            for (int k = 1;k <= 2*i-1;k++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
